package org.nicocube.airain.app.client.ui;

import org.nicocube.airain.common.client.form.Form;
import org.nicocube.airain.common.client.form.FormField;
import org.nicocube.airain.domain.client.character.Gender;

import com.google.gwt.i18n.client.Constants;
import com.google.gwt.user.client.ui.HasValue;

public abstract class GenderField extends FormField<Gender> {

	public GenderField(String name, Form form, Constants constants) {
		super(name, form, constants);
	}

	@Override
	protected HasValue<Gender> constructWidget(final Constants constants) {
		return new GenderFieldWidget(name, constants);
	}
}